package com.example.springboot_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot_system.pojo.Register;
import com.example.springboot_system.pojo.User;
import com.example.springboot_system.pojo.vo.register.RegisterRecordRspVO;
import com.example.springboot_system.pojo.vo.register.RegisterRecordSearchReqVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface RegisterMapper extends BaseMapper<Register> {



    Integer updateRegisterStatus(@Param("registerStatus") int registerStatus,@Param("id") String id);


//    Register findByRegisteredNum(String registerNum);
   /* Register findByRegisteredNum(String registerNum);*/

    // hui
    List<Register> findByPatientId(String id);

    Integer save(Register register);

//    Integer update(Register register);

    List<RegisterRecordRspVO> findAll();

    List<Register> findAllWithCondition(RegisterRecordSearchReqVO reqVO);

    List<Register> findAllByPidAndStatus(@Param("id") String id, @Param("dayStart") String dayStart, @Param("dayEnd") String dayEnd);


//    Register findByRegisteredNum(String registerNum);

}

